#define  _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>

int main()
{
	
	for (int i = 1; i <= 9; i++)
	{
		for (int j = i; j <= 9; j++)
		{
			int a = i * j;

			
			printf("%d*%d=%d ", i, j, a);
		}
		printf("\n");
	}

	for (int i = 1; i <= 9; i++)
	{
		for (int j = 1; j <= i; j++)
		{
			int a = i * j;
			printf("%d*%d=%d ", j, i, a);
		}
		printf("\n");
	}


	for (int i = 1; i <= 9; i++)
	{
		for (int j=i;j>0;j--)
		{
			int a = i * j;
			printf("%d*%d=%d ", j, i, a);

		}
		printf("\n");

	}



}